+2007-07-11 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkplug.c:
+ * gtk/gtksocket.c: Move docs inline, and add some missing
+ docs.
+
2007-07-11 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_*_to_*_coords): x should be
+2007-07-11 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/tmpl/gtkplug.sgml:
+ * gtk/tmpl/gtksocket.sgml: Move docs inline
+
2007-07-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-sections.txt: Updates
destroyed, then it will destroy the socket as well. You
should always, therefore, be prepared for your sockets
to be destroyed at any time when the main event loop
-is running.
+is running. To prevent this from happening, you can
+connect to the #GtkSocket::plug-removed signal.
</para>
<para>
<!-- ##### SIGNAL GtkSocket::plug-added ##### -->
<para>
-This signal is emitted when a client is successfully
-added to the socket.
+
</para>
-@socket: the object which received the signal.
-<!-- # Unused Parameters # -->
-@socket_: the object which received the signal.
+@socket_:
<!-- ##### SIGNAL GtkSocket::plug-removed ##### -->
<para>
-This signal is emitted when a client is removed from the socket. The
-default action is to destroy the #GtkSocket widget, so if you want to
-reuse it you must add a signal handler that returns %TRUE.
+
</para>
-@socket: the object which received the signal.
-@Returns:
-<!-- # Unused Parameters # -->
-@socket_: the object which received the signal.
+@socket_:
<!-- ##### FUNCTION gtk_socket_new ##### -->
<para>
FALSE,
GTK_PARAM_READABLE));
+ /**
+ * GtkPlug::embedded:
+ * @plug: the object on which the signal was emitted
+ *
+ * Gets emitted when the plug becomes embedded in a socket
+ * and when the embedding ends.
+ */
plug_signals[EMBEDDED] =
g_signal_new (I_("embedded"),
G_OBJECT_CLASS_TYPE (class),
container_class->remove = gtk_socket_remove;
container_class->forall = gtk_socket_forall;
+ /**
+ * GtkSocket::plug-added:
+ * @socket_: the object which received the signal
+ *
+ * This signal is emitted when a client is successfully
+ * added to the socket.
+ */
socket_signals[PLUG_ADDED] =
g_signal_new (I_("plug_added"),
G_OBJECT_CLASS_TYPE (class),
NULL, NULL,
_gtk_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ /**
+ * GtkSocket::plug-removed:
+ * @socket_: the object which received the signal
+ *
+ * This signal is emitted when a client is removed from the socket.
+ * The default action is to destroy the #GtkSocket widget, so if you
+ * want to reuse it you must add a signal handler that returns %TRUE.
+ *
+ * Return value: %TRUE to stop other handlers from being invoked.
+ */
socket_signals[PLUG_REMOVED] =
g_signal_new (I_("plug_removed"),
G_OBJECT_CLASS_TYPE (class),